How Do IOpen Another myBrowser Form When A` URL Is Clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arthur and the invisibles
    New Member
    • Sep 2007
    • 3

    How Do IOpen Another myBrowser Form When A` URL Is Clicked

    I Have made a browser in vb 2005 express.
    But when i click on a URL it opens up with Internet Explorer and i want it to open in another form. Could Someone kindly tell me how this is done.
  • VBPhilly
    New Member
    • Aug 2007
    • 95

    #2
    Originally posted by arthur and the invisibles
    I Have made a browser in vb 2005 express.
    But when i click on a URL it opens up with Internet Explorer and i want it to open in another form. Could Someone kindly tell me how this is done.
    how did you make a browser?
    did you embed an internet explorer control?
    use the webbrowser control?

    sounds like you have a settings issue: "open links in a new browser window".
    I think you are at the mercy of these settings when using embedded IE browser controls.

    Comment

    • VBPhilly
      New Member
      • Aug 2007
      • 95

      #3
      I should also offer that you SHOULD be able to capture click events in the embedded browser control.
      try looking for some events in your control.
      again, no idea how you are embedding a browser. need more info.

      Comment

      • arthur and the invisibles
        New Member
        • Sep 2007
        • 3

        #4
        Originally posted by VBPhilly
        how did you make a browser?
        did you embed an internet explorer control?
        use the webbrowser control?

        sounds like you have a settings issue: "open links in a new browser window".
        I think you are at the mercy of these settings when using embedded IE browser controls.
        i used the web browser control that comes with the vb express edition

        Comment

        • VBPhilly
          New Member
          • Aug 2007
          • 95

          #5
          Originally posted by arthur and the invisibles
          i used the web browser control that comes with the vb express edition
          ok, you'll need to code some events to 'capture' things like hyperlink clicked.
          Within those events is where you will be able to handle the transition to your other forms webbrowser control.

          here is a tutorial/information about handling events for the webbrowser control: http://msdn2.microsoft.com/en-us/library/aa752045.aspx

          Comment

          • arthur and the invisibles
            New Member
            • Sep 2007
            • 3

            #6
            thanks for the link but it seems to be in vb6 which is fine until i reach the line:
            [mybrowser.Docum ent.All("btnMyB utton").onclick = cfForward]
            where i get the error
            "Onclick is not a member of 'system.windows .forms.htmlelem ent'

            Comment

            Working...